home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / ROMDefs.h < prev    next >
Text File  |  1995-07-06  |  10KB  |  269 lines

  1. /*
  2.      File:        ROMDefs.h
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __ROMDEFS__
  21. #define __ROMDEFS__
  22.  
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. #if PRAGMA_ALIGN_SUPPORTED
  29. #pragma options align=mac68k
  30. #endif
  31.  
  32. #if PRAGMA_IMPORT_SUPPORTED
  33. #pragma import on
  34. #endif
  35.  
  36.  
  37. enum {
  38.     appleFormat                    = 1,                            /*Format of Declaration Data (IEEE will assign real value)*/
  39.     romRevision                    = 1,                            /*Revision of Declaration Data Format*/
  40.     romRevRange                    = 9,                            /*Revision of Declaration Data Format [1..9]*/
  41.     testPattern                    = 1519594439,                    /*FHeader long word test pattern*/
  42.     sCodeRev                    = 2,                            /*Revision of code (For sExec)*/
  43.     sExec2                        = 2,
  44.     sCPU68000                    = 1,                            /*CPU type = 68000*/
  45.     sCPU68020                    = 2,                            /*CPU type = 68020*/
  46.     sCPU68030                    = 3,                            /*CPU type = 68030*/
  47.     sCPU68040                    = 4,                            /*CPU type = 68040*/
  48.     sMacOS68000                    = 1,                            /*Mac OS, CPU type = 68000*/
  49.     sMacOS68020                    = 2,                            /*Mac OS, CPU type = 68020*/
  50.     sMacOS68030                    = 3,                            /*Mac OS, CPU type = 68030*/
  51.     sMacOS68040                    = 4,                            /*Mac OS, CPU type = 68040*/
  52.     board                        = 0,                            /*Board sResource - Required on all boards*/
  53.     displayVideoAppleTFB        = 16843009,                        /*Video with Apple parameters for TFB card.*/
  54.     displayVideoAppleGM            = 16843010,                        /*Video with Apple parameters for GM card.*/
  55.     networkEtherNetApple3Com    = 33620225,                        /*Ethernet with apple parameters for 3-Comm card.*/
  56.     testSimpleAppleAny            = -2147417856,                    /*A simple test sResource.*/
  57.     endOfList                    = 255,                            /*End of list*/
  58.     defaultTO                    = 100                            /*100 retries.*/
  59. };
  60.  
  61. enum {
  62. /* sResource flags for sRsrc_Flags */
  63.     fOpenAtStart                = 1,                            /* set => open the driver at start time, else do not */
  64.     f32BitMode                    = 2                                /* set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) */
  65. };
  66.  
  67. enum {
  68.     sRsrcType                    = 1,                            /*Type of sResource*/
  69.     sRsrcName                    = 2,                            /*Name of sResource*/
  70.     sRsrcIcon                    = 3,                            /*Icon*/
  71.     sRsrcDrvrDir                = 4,                            /*Driver directory*/
  72.     sRsrcLoadDir                = 5,                            /*Load directory*/
  73.     sRsrcBootRec                = 6,                            /*sBoot record*/
  74.     sRsrcFlags                    = 7,                            /*sResource Flags*/
  75.     sRsrcHWDevId                = 8,                            /*Hardware Device Id*/
  76.     minorBaseOS                    = 10,                            /*Offset to base of sResource in minor space.*/
  77.     minorLength                    = 11,                            /*Length of sResource’s address space in standard slot space.*/
  78.     majorBaseOS                    = 12,                            /*Offset to base of sResource in Major space.*/
  79.     majorLength                    = 13,                            /*Length of sResource in super slot space.*/
  80.     sRsrcTest                    = 14,                            /*sBlock diagnostic code*/
  81.     sRsrccicn                    = 15,                            /*Color icon*/
  82.     sRsrcicl8                    = 16,                            /*8-bit (indexed) icon*/
  83.     sRsrcicl4                    = 17,                            /*4-bit (indexed) icon*/
  84.     sDRVRDir                    = 16,                            /*sDriver directory*/
  85.     sGammaDir                    = 64,                            /*sGamma directory*/
  86.     sRsrcVidNames                = 65,                            /*Video mode name directory*/
  87.     sRsrcDock                    = 80,                            /*spID for Docking Handlers*/
  88.     sDiagRec                    = 85,                            /*spID for board diagnostics*/
  89.     sVidAuxParams                = 123,                            /*more video info for Display Manager -- timing information*/
  90.     sDebugger                    = 124,                            /*DatLstEntry for debuggers indicating video anamolies*/
  91.     sVidAttributes                = 125,                            /*video attributes data field (optional,word)*/
  92.     fLCDScreen                    = 0,                            /* bit 0 - when set is LCD, else is CRT*/
  93.     fBuiltInDisplay                = 1,                            /*      1 - when set is built-in (in the box) display, else not*/
  94.     fDefaultColor                = 2,                            /*      2 - when set display prefers multi-bit color, else gray*/
  95.     fActiveBlack                = 3,                            /*      3 - when set black on display must be written, else display is naturally black*/
  96.     fDimMinAt1                    = 4,                            /*      4 - when set should dim backlight to level 1 instead of 0*/
  97.     fBuiltInDetach                = 4,                            /*      4 - when set is built-in (in the box), but detaches*/
  98.     sVidParmDir                    = 126,
  99.     sSuperDir                    = 254
  100. };
  101.  
  102. /* =======================================================================    */
  103. /* sResource types                                                            */
  104. /* =======================================================================    */
  105. enum {
  106.     catBoard                    = 0x0001,                        /*Category for board types.*/
  107.     catTest                        = 0x0002,                        /*Category for test types -- not used much.*/
  108.     catDisplay                    = 0x0003,                        /*Category for display (video) cards.*/
  109.     catNetwork                    = 0x0004,                        /*Category for Networking cards.*/
  110.     catScanner                    = 0x0008,                        /*scanners bring in data somehow*/
  111.     catCPU                        = 0x000A,
  112.     catIntBus                    = 0x000C,
  113.     catProto                    = 0x0011,
  114.     catDock                        = 0x0020,
  115. /*<Type>*/
  116.     typeBoard                    = 0x0000,
  117.     typeApple                    = 0x0001,
  118.     typeVideo                    = 0x0001,
  119.     typeEtherNet                = 0x0001,
  120.     typeStation                    = 0x0001,
  121.     typeDesk                    = 0x0002,
  122.     typeDSP                        = 0x0004,
  123.     typeXPT                        = 0x000B,
  124.     typeSIM                        = 0x000C,
  125.     typeDebugger                = 0x0100,
  126.     type68000                    = 0x0002,
  127.     type68020                    = 0x0003,
  128.     type68030                    = 0x0004,
  129.     type68040                    = 0x0005,
  130.     type601                        = 0x0025,
  131.     type603                        = 0x002E,
  132.     typeAppleII                    = 0x0015,
  133. /*Driver Interface : <id.SW>*/
  134.     drSwMacCPU                    = 0,
  135.     drSwAppleIIe                = 0x0001,
  136.     drSwApple                    = 1,                            /*To ask for or define an Apple-compatible SW device.*/
  137.     drSwMacsBug                    = 0x0104,
  138. /*Driver Interface : <id.SW><id.HW>*/
  139.     drHwTFB                        = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  140.     drHw3Com                    = 1,                            /*HW ID for the Apple EtherTalk card.*/
  141.     drHwBSC                        = 3,
  142.     drHwGemini                    = 1,
  143.     drHwDeskBar                    = 1,
  144.     drHwATT3210                    = 0x0001,
  145.     drHwBootBug                    = 0x0100,
  146. /* video hardware id's  - <catDisplay><typVideo>*/
  147.     drHwRBV                        = 0x0018,
  148.     drHwJMFB                    = 0x0019,
  149.     drHwElsie                    = 0x001A,
  150.     drHwTim                        = 0x001B,
  151.     drHwDAFB                    = 0x001C,
  152.     drHwGSC                        = 0x001E,
  153.     drHwDAFBPDS                    = 0x001F,
  154.     drHWVSC                        = 0x0020,
  155.     drHwApollo                    = 0x0021,
  156.     drHwSonora                    = 0x0022,
  157.     drHwReserved2                = 0x0023,
  158.     drHwColumbia                = 0x0024,
  159.     drHwCivic                    = 0x0025,
  160.     drHWPBLCD                    = 0x0027,
  161.     drHWCSC                        = 0x0028,
  162.     drHwJET                        = 0x0029,
  163.     drHWMEMCjr                    = 0x002A,
  164.     drHwValkyrie                = 0x002E,
  165.     drHwKeystone                = 0x002F,
  166.     drHWATI                        = 0x0055,
  167. /* other drHW id's for built-in functions*/
  168.     drHwSonic                    = 0x0110,
  169.     drHwMace                    = 0x0114,
  170.     drHwDblExp                    = 0x0001,
  171. /* CPU board IDs - <catBoard> <typBoard> <0000> <0000>*/
  172.     MIIBoardId                    = 0x0010,                        /*Mac II Board ID*/
  173.     ciVidBoardID                = 0x001F,                        /*Aurora25 board ID*/
  174.     CX16VidBoardID                = 0x0020,                        /*Aurora16 board ID*/
  175.     MIIxBoardId                    = 0x0021,                        /*Mac IIx Board ID*/
  176.     SE30BoardID                    = 0x0022,                        /*Mac SE/30 Board ID*/
  177.     MIIcxBoardId                = 0x0023,                        /*Mac IIcx Board ID*/
  178.     MIIfxBoardId                = 0x0024,                        /*F19 board ID*/
  179.     EricksonBoardID                = 0x0028,                        /**/
  180.     ElsieBoardID                = 0x0029,                        /**/
  181.     TIMBoardID                    = 0x002A,                        /**/
  182.     EclipseBoardID                = 0x002B,                        /**/
  183.     SpikeBoardID                = 0x0033,                        /**/
  184.     DBLiteBoardID                = 0x0035,                        /**/
  185.     ZydecoBrdID                    = 0x0036,                        /**/
  186.     ApolloBoardID                = 0x0038,                        /**/
  187.     PDMBrdID                    = 0x0039,                        /**/
  188.     VailBoardID                    = 0x003A,                        /**/
  189.     WombatBrdID                    = 0x003B,                        /**/
  190.     ColumbiaBrdID                = 0x003C,                        /**/
  191.     CycloneBrdID                = 0x003D,                        /**/
  192.     CompanionBrdID                = 0x003E,                        /**/
  193.     DartanianBoardID            = 0x0040,                        /**/
  194.     DartExtVidBoardID            = 0x0046,                        /**/
  195.     HookBoardID                    = 0x0047,                        /*Hook internal video board ID*/
  196.     EscherBoardID                = 0x004A,                        /*Board ID for Escher (CSC)*/
  197.     POBoardID                    = 0x004D,                        /*Board ID for Primus/Optimus/Aladdin*/
  198.     TempestBrdID                = 0x0050,                        /*Non-official Board ID for Tempest*/
  199.     BlackBirdBdID                = 0x0058,                        /*Board ID for BlackBird*/
  200.     BBExtVidBdID                = 0x0059,                        /*Board ID for BlackBird built-in external video*/
  201.     YeagerBoardID                = 0x005A,                        /*Board ID for Yeager*/
  202.     BBEtherNetBdID                = 0x005E,                        /*Board ID for BlackBird Ethernet board*/
  203.     TELLBoardID                    = 0x0065,                        /*Board ID for TELL (Valkyrie)*/
  204.     MalcolmBoardID                = 0x065E,                        /*Board ID for Malcolm*/
  205.     AJBoardID                    = 0x065F,                        /*Board ID for AJ*/
  206.     M2BoardID                    = 0x0660,                        /*Board ID for M2*/
  207.     OmegaBoardID                = 0x0661,                        /*Board ID for Omega*/
  208. /* other board IDs*/
  209.     BoardIDDblExp                = 0x002F,
  210.     DAFBPDSBoardID                = 0x0037,
  211.     MonetBoardID                = 0x0048,
  212.     SacSONIC16BoardID            = 0x004E,
  213.     SacSONIC32BoardID            = 0x004F,
  214. /* CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>*/
  215.     drHWMacII                    = 0x0001,                        /*Mac II hw ID*/
  216.     drHwMacIIx                    = 0x0002,                        /*Mac IIx hw ID*/
  217.     drHWSE30                    = 0x0003,                        /*Mac SE/30 hw ID*/
  218.     drHwMacIIcx                    = 0x0004,                        /*Mac IIcx hw ID*/
  219.     drHWMacIIfx                    = 0x0005,                        /*Mac IIfx hw ID*/
  220.     drHWF19                        = 0x0005,                        /*F19 hw ID*/
  221.     sBlockTransferInfo            = 20,                            /*general slot block xfer info*/
  222.     sMaxLockedTransferCount        = 21,                            /*slot max. locked xfer count*/
  223.     boardId                        = 32,                            /*Board Id*/
  224.     pRAMInitData                = 33,                            /*sPRAM init data*/
  225.     primaryInit                    = 34,                            /*Primary init record*/
  226.     timeOutConst                = 35,                            /*Time out constant*/
  227.     vendorInfo                    = 36,                            /*Vendor information List. See Vendor List, below*/
  228.     boardFlags                    = 37,                            /*Board Flags*/
  229.     secondaryInit                = 38,                            /*Secondary init record/code*/
  230. /* The following Id's are associated with all CPU sResources.*/
  231.     MajRAMSp                    = 129,                            /*ID of Major RAM space.*/
  232.     MinROMSp                    = 130,                            /*ID of Minor ROM space.*/
  233.     vendorId                    = 1,                            /*Vendor Id*/
  234.     serialNum                    = 2,                            /*Serial number*/
  235.     revLevel                    = 3,                            /*Revision level*/
  236.     partNum                        = 4,                            /*Part number*/
  237.     date                        = 5                                /*Last revision date of the card*/
  238. };
  239.  
  240. enum {
  241.     testByte                    = 32,                            /*Test byte.*/
  242.     testWord                    = 33,                            /*0021*/
  243.     testLong                    = 34,                            /*Test Long.*/
  244.     testString                    = 35                            /*Test String.*/
  245. };
  246.  
  247. /* sResource List. Category: Display        Type: Video */
  248. /* The following Id's are common to all Mode sResources in Display_Video */
  249. /* functional sResources. */
  250. enum {
  251.     mBlockTransferInfo            = 5,                            /* slot block xfer info PER MODE */
  252.     mMaxLockedTransferCount        = 6                                /* slot max. locked xfer count PER MODE */
  253. };
  254.  
  255.  
  256. #if PRAGMA_IMPORT_SUPPORTED
  257. #pragma import off
  258. #endif
  259.  
  260. #if PRAGMA_ALIGN_SUPPORTED
  261. #pragma options align=reset
  262. #endif
  263.  
  264. #ifdef __cplusplus
  265. }
  266. #endif
  267.  
  268. #endif /* __ROMDEFS__ */
  269.